package com.skali.hooks;

import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil;
import com.liferay.portlet.dynamicdatamapping.model.DDMContent;
import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalServiceWrapper;
import com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalService;

public class ExtDDMContentLocalService extends DDMContentLocalServiceWrapper {
	public ExtDDMContentLocalService(
			DDMContentLocalService ddmContentLocalService) {
		super(ddmContentLocalService);
	}

	/* (non-Java-doc)
	 * @see com.liferay.portlet.dynamicdatamapping.service.DDMContentLocalServiceWrapper#DDMContentLocalServiceWrapper(DDMContentLocalService ddmContentLocalService)
	 */
	
	
	@Override
	public DDMContent addContent(long userId, long groupId, String name,
			String description, String xml, ServiceContext serviceContext)
			throws PortalException, SystemException {
	//	System.out.println(" >>>>>> Inside addContent <<<<<<<<<<   ");
	//	System.out.println(" uuid = "+serviceContext.getUuid() +" userId = "+userId +"\n name = "+name +" \n xml = "+xml);
		
		return super.addContent(userId, groupId, name, description, xml, serviceContext);
	}
	
	
	@Override
	public DDMContent updateContent(long contentId, String name,
			String description, String xml, ServiceContext serviceContext)
			throws PortalException, SystemException {
	//	System.out.println(" >>>>>> Inside updateContent <<<<<<<<<<   ");
	//	System.out.println("\n \n uuid = "+serviceContext.getUuid() +" contentId = "+contentId +"\n name = "+name +" \n xml = "+xml);
		return super.updateContent(contentId, name, description, xml, serviceContext);
	}

}